<template>

  <view class="components-list tn-safe-area-inset-bottom">

    <!-- 顶部自定义导航 -->
    <tn-nav-bar fixed>客户</tn-nav-bar>

    <!-- 页面内容 -->
    <view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
        <tn-list-view title="" unlined="bottom">
          <tn-list-cell :unlined="false">
            <view class="message">
              <view class="message__middle">
                <view class="message__name">北京奇虎360有限公司</view>
                <view class="message__content tn-text-ellipsis"><tn-tag backgroundColor="tn-bg-grey" fontColor="tn-color-blue"  width="auto" size="sm">高意向</tn-tag></view>
				<view class="message__content tn-text-ellipsis">负责人:张三</view>
				<view class="message__content tn-text-ellipsis">最近跟进时间：-</view>
				<view class="message__content tn-text-ellipsis">掉保时间：-</view>
              </view>
              <view class="message__right">
                <view class="message__time"><tn-tag backgroundColor="tn-bg-grey" fontColor="tn-color-blue"  width="auto" size="sm">跟进</tn-tag></view>
                <view class="message__tips">
                  <tn-tag  fontColor="tn-color-white" shape="circle" width="auto" size="sm"></tn-tag>
                </view>
              </view>
            </view>
          </tn-list-cell>
          <tn-list-cell :unlined="true">
            <view class="message">
              <view class="message__middle">
                <view class="message__name">百度中国有限公司</view>
                <view class="message__content tn-text-ellipsis"><tn-tag backgroundColor="tn-bg-grey" fontColor="tn-color-blue"  width="auto" size="sm">高意向</tn-tag></view>
                <view class="message__content tn-text-ellipsis">负责人:张三</view>
                <view class="message__content tn-text-ellipsis">最近跟进时间：-</view>
                <view class="message__content tn-text-ellipsis">掉保时间：-</view>
              </view>
              <view class="message__right">
                <view class="message__time">额</view>
                <view class="message__tips">
					<tn-tag  fontColor="tn-color-white" shape="circle" width="auto" size="sm"></tn-tag>
                </view>
              </view>
            </view>
          </tn-list-cell>
        </tn-list-view>
      
      <view class="tn-padding-bottom-lg"></view>

    </view>
		<tn-fab
		  left="auto"
		  :right="40"
		  :bottom="120"
		  :iconSize="50"
		  backgroundColor="#3465CC"
		  fontColor="#ffffff"
		   icon="add"
		  animationType="up"
		   :showMask="false"
		   zIndex="1000"
		   fabClick="clickFabItem"
		>
		</tn-fab>

  </view>

</template>

<script>
  import demoTitle from '@/libs/components/demo-title.vue'
  export default {
    name: 'componentsList',
    components: {demoTitle},
    data() {
      return {
        showListOptions: false,
        cellShowBorderLine: true,
        cellLongBorderLine: false,
        cellNoPaddingArrow: false,
        
        cellArrow: false,
        cellArrowRight: true,
        cellUnlined: false,
        cellLineLeft: true,
        cellLineRight: true,
        
        avatarGroupList: [
          {src: 'https://resource.tuniaokj.com/images/avatar/xiaomai1.jpg'},
          {src: 'https://resource.tuniaokj.com/images/avatar/xiaomai2.jpg'},
          {src: 'https://resource.tuniaokj.com/images/avatar/xiaomai1.jpg'},
          {src: 'https://resource.tuniaokj.com/images/avatar/xiaomai2.jpg'},
        ],
      }
    },
    watch: {

    },
    methods: {
	// 点击悬浮按钮的内容
	clickFabItem() {
	  console.log("yyyyyyy")
	},
      // 跳转
      tn(e) {
      	uni.navigateTo({
      		url: e,
      	});
      }
    }
  }
</script>

<style lang="scss" scoped>
  
  .components-list {
    background-color: $tn-bg-gray-color;
    min-height: 100vh;
  }
  
  .custom-title {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10rpx 20rpx;
  }
  
  .list__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .list {
    &__left {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      
      &__icon, &__image {
        margin-right: 18rpx;
      }
    }
    
    &__right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
  }
  
  .list-icon-text, .list-image-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .list-image-text {
    .list {
      &__left {
        &__image {
          width: 20rpx;
          height: 20rpx;
        }
      }
    }
  }
  
  .message {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    
    &__left {
      width: 10%;
    }
    &__middle {
      width: 80%;
      padding-left: 20rpx;
      padding-right: 40rpx;
    }
    &__right {
      width: 10%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    
    &__name {
      font-size: 32rpx;
      margin-bottom: 8rpx;
    }
    &__content {
      font-size: 26rpx;
      color: #838383;
    }
    &__tips {
      &__icon {
        font-size: 36rpx;
        color: #AAAAAA;
      }
    }
  }
</style>
